import request from '@/utils/request'

// 查询车辆和车场关系列表
export function listParkCarParking(query) {
  return request({
    url: '/system/parkCarParking/list',
    method: 'get',
    params: query
  })
}

// 查询车辆和车场关系详细
export function getParkCarParking(id) {
  return request({
    url: '/system/parkCarParking/' + id,
    method: 'get'
  })
}

// 新增车辆和车场关系
export function addParkCarParking(data) {
  return request({
    url: '/system/parkCarParking',
    method: 'post',
    data: data
  })
}

// 修改车辆和车场关系
export function updateParkCarParking(data) {
  return request({
    url: '/system/parkCarParking',
    method: 'put',
    data: data
  })
}

// 删除车辆和车场关系
export function delParkCarParking(id) {
  return request({
    url: '/system/parkCarParking/' + id,
    method: 'delete'
  })
}

// 导出车辆和车场关系
export function exportParkCarParking(query) {
  return request({
    url: '/system/parkCarParking/export',
    method: 'get',
    params: query
  })
}